计算机与现代化 ›› 2012, Vol. 198 ›› Issue (2): 73-76.doi: 10.3969/j.issn.1006-2475.2012.02.020

• 图像处理 • 上一篇    下一篇

软件重构及设计模式在摄像头阅卷系统中的应用研究

许婷,孙涌,章建民   

  1. 苏州大学计算机科学与技术学院,江苏 苏州 215006
  • 收稿日期:2011-08-22 修回日期:1900-01-01 出版日期:2012-02-24 发布日期:2012-02-24

Research on Application of Software Refactoring and Design Patterns in Camera Information-card Review System

XU Ting, SUN Yong, ZHANG Jian-min   

  1. School of Computer Science and Technology, Soochow University, Suzhou 215006, China
  • Received:2011-08-22 Revised:1900-01-01 Online:2012-02-24 Published:2012-02-24

摘要: 首先设计并实现一个基于摄像头的阅卷系统,该系统由试卷获取、灰度化、二值化、畸变变换、倾斜校正、图像定位和识别等图像处理流程组成。然后以此为依据,通过对重构技术及设计模式原则和方法的系统研究,对该系统框架进行优化和重构。本文充分参照现有的设计模式,通过重构技术,改善现有代码的质量,增加系统的可维护性和可复用性。

关键词: 软件重构, 设计模式, 摄像头阅卷

Abstract: This paper designs and implements a camera-based informationcard review system, which consists of a series of image process operations such as image acquisition, converting RGB into grayscale image, binary image, optic aberrance revising, skew angle correction, locating and identifying of image. Then optimized and refactored the framework of the system according to the systematic research of software refactoring and design patterns. This paper makes full refers to design patterns and improves the quality of existing code by the refactoring technology, and increases the system’s maintainability and reusability.

Key words: software refactoring, design patterns, camera-based scoring

中图分类号: